package 二维数组;

public class 初始化 {
    public static void main(String[] args) {
        int[][] array = new int[2][3];
        array[0] =new int[]{1,2};
        array[1] =new int[]{4,5};

        int[][] array1 = {{1,2,3},{4,5,6}};

        int[][] array2 = new int[][]{{1,2,3},{4,5,6}};

        //不规则
        int[][] array3 = new int[2][];
        array3[0] = new int[]{1,2,3};
        array3[1] = new int[]{1,2,3,4,5,6,6};
    }
}
